<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head>
		<title>iQuiz:{% block title %} {% endblock %} </title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		{% load static %}
		<link rel="stylesheet" type="text/css" href="{% get_static_prefix %}css/global.css" media="screen"/>
		<script src="{% get_static_prefix %}js/quiz.js"  type="text/javascript"></script>
	</head>
	<body >
		
		<div id="main-box" class="mainBox">
            <div id="header" class="header">
				<h1 id="branding"  ><a href="/">iQuiz </a> | {% block _title %} {% endblock %}</h1>
				<div id="menu" >
					<ul>
						<li> <a href="/">首页</a> </li>
						<li> <a href="/qall/">问题</a> </li>
						<li> <a href="/quiz/create/">测试</a> </li>
						<li> <a href="/record/">记录</a> </li>
						<li> <a href="/help/">帮助</a> </li>
					</ul>
				</div>
	       	</div>
			<div id="content" class="content">
				{% block content %}
				{% endblock %}
			</div>
			<div id="sider" class="sider">
				<h2>Navigation</h2>
				<ul id="main-nav">
						
					{% if user.is_authenticated %}
						欢迎 {{ user.username }} (<a href="/accounts/logout/">注销</a>)			
						<br/>	
				    {% else %}
						{% include "login.html" %}|{% include  "register.html" %}|
					{% endif %}	
					
				
					<div class="my-hr"></div>
					
					<li id="main-nav-index">
						<a href="/">首页</a>
					</li>
					<li id="main-nav-question">
						<a href="/qall/">问题</a>
					</li>
					<li id="main-nav-quiz">
						<a href="/quiz/create/">进入测试</a>
					</li>
					<li id="main-nav-record">
						<a href="/record/">记录</a>
					</li>
					<li id="main-nav-help">
						<a href="/help/">帮助</a>
					</li>


				</ul>
				
				<h2>留言/评论</h2>
				{% block comments %}
				{% endblock %}
		</div>
	</div>
	<div id="clear_box" class="clear"></div>
	<div id="footer" class="footer">
		 <p> Thanks for using my iQuiz. Valid <a href="#">CSS</a> &amp; <a href="#">XHTML</a><br/>
			Designed by <a href="#" >ghh</a>
			Tel:+086 029 84706459. <br/>
			 Copyright&copy;2011-2013.</p>
	</div>
	</body>
</html>
		
